package com.jiyun.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.orders.pojo.Orders;
import com.jiyun.orders.vo.OrdersVo;
import org.apache.ibatis.annotations.Param;


import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 订单基础信息表 Mapper 接口
 * </p>
 *
 * @author 1823.
 * @since 2025-02-12
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    List<Orders> getOrders(@Param("orders") OrdersVo ordersVo);

    Orders getOrdersDetail(Integer id);

    List<Orders> findAll();

    void addOrders(Orders orders);



//    int addOrders(Orders orders);


    Integer getOrderCountByDate(LocalDate date);

}
